<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/3/23 0023
 * Time: 下午 22:41
 */
namespace app\common\model;

use think\Db;
use think\Model;

class Shop extends Model
{
    protected $pk = 'id';
    protected $autoWriteTimestamp = 'datetime';

    //自定义初始化
    protected function initialize()
    {
        parent::initialize();
    }

    //保存用户行为
    public function saveLog($method='', $type=1)
    {
        //$user_info = session('user_info');
        //$ip = request()->ip();
        //error_log('helloe');

    }

}